package com.bookstore.back.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("review_likes")
public class ReviewLike {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("review_id")
    private Integer reviewId;

    @TableField("user_id")
    private Integer userId;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

}
